package com.fyfeng.javatest;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.fyfeng.java.utils.exception.ExceptionUtils;

public class Test {

	private static Log log = LogFactory.getLog(Test.class);

	public static void main(String[] args) {

		log.debug("=============================================>>>>");

		try {
			String hello = null;
			System.out.println(hello.length());
		} catch (Exception e) {
			// e.printStackTrace();

			System.out.println("-------------------------------------------");
			log.debug(ExceptionUtils.toString(e));
			System.out.println("-------------------------------------------");
		}

		log.debug("====================================================<<<<");
	}

}
